package GenericsTest;

public class taidiDog extends Dog{
    public taidiDog() {
    }

    public taidiDog(String name, int age) {
        super(name, age);
    }
    @Override
    public void eat(){
        System.out.println("一只"+getAge()+"岁的"+getName()+"在吃骨头");

    }
    @Override
    public void work(){
        System.out.println("，边吃边蹭");
    }
}
